﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admincp/MasterPageEmpty.master"
    AutoEventWireup="true" CodeFile="dshocsinh.aspx.cs" Inherits="admincp_dshocsinh" %>

<%@ Register Src="wucSideBar.ascx" TagName="wucSideBar" TagPrefix="uc1" %>
<%@ Register Src="wucNavTop.ascx" TagName="wucNavTop" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTopBar" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphSideBar" runat="Server">
    <uc1:wucSideBar ID="wucSideBar1" runat="server" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphNavTop" runat="Server">
    <uc2:wucNavTop ID="wucNavTop1" runat="server" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphContent" runat="Server">
    <div class="flat_area grid_16">
        <h2>
            Danh sách học sinh theo lớp</h2>
        <br />
    </div>
    <div class="flat_area grid_4">
        <h2>
            Chọn năm học</h2>
        <div class="input_group">
            <asp:DropDownList ID="ddlNamHoc" title="Chọn năm học" runat="server" AutoPostBack="True"
                OnSelectedIndexChanged="ddlNamHoc_SelectedIndexChanged">
            </asp:DropDownList>
        </div>
        <br />
        <br />
    </div>
    <div class="flat_area grid_4">
        <h2>
            Chọn lớp học</h2>
        <div class="input_group">
            <asp:DropDownList ID="ddlLopHoc" title="Chọn năm học" runat="server">
            </asp:DropDownList>
        </div>
        <br />
        <br />
    </div>
    <div class="flat_area grid_8">
        <h2>
            Xác nhận</h2>
        <button id="btnXacNhan" runat="server" onserverclick="XacNhan" class="button_colour round_all">
            <img height="24" width="24" alt="Xác nhận" src="images/icon_apply.png"/><span>Xác nhận</span></button>
        <br />
        <br />
    </div>
    <div class="flat_area grid_16">
        <h2>
            Kết quả:</h2>
    </div>
    <div class="box grid_16 round_all">
        <asp:ListView ID="lvHocSinh" runat="server">
            <LayoutTemplate>
                <table class="display table">
                    <thead>
                        <tr>
                            <th style="width: 5%">
                                Số thứ tự
                            </th>
                            <th style="width: 5%">
                                Mã học sinh
                            </th>
                            <th style="width: 60%">
                                Tên học sinh
                            </th>
                            <th style="width: 6%">
                                Điện thoại
                            </th>
                            <th style="width: 6%">
                                Email
                            </th>
                            <th style="width: 5%" align="center">
                                Trạng thái
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                    </tbody>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <%# Eval("SoThuTu")%>
                    </td>
                    <td valign="middle">
                        <b>
                            <%# Eval("MaHocSinh")%></b>
                    </td>
                    <td>
                        <b>
                            <%# Eval("TenHocSinh")%></b>
                    </td>
                    <td align="center">
                        <%# Eval("DienThoai")%>
                    </td>
                    <td align="left">
                        <%# Eval("Email")%>
                    </td>
                    <td align="center">
                        <asp:Image ID="imgStatus" ImageUrl='<%# HienThiTrangThaiBangHinhAnh(Eval("TrangThai")) %>'
                            runat="server" Width="10" Height="10" />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
        <br />
        <button id="btnXuatExcel" runat="server" onserverclick="XuatExcel" class="button_colour round_all">
            <img height="24" width="24" alt="Xuất ra Excel" src="images/icon_excel.png"/><span>Xuất
                ra Excel</span></button>
    </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="cphTemplateOption" runat="Server">
</asp:Content>
